package com.wish.blessingroad.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 视频表
 * </p>
 *
 * @author dhc
 * @since 2019-02-18
 */
@Data
@Accessors(chain = true)
@TableName("videos")
public class Videos extends Model<Videos> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 祝福地址
     */
    private String address;

    /**
     * 视频地址
     */
    private String url;

    /**
     * 执行日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime excuteDate;

    /**
     * 添加日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;


    /**指定主键*/
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public static final String ID = "id";

    public static final String ADDRESS = "address";

    public static final String URL = "url";

    public static final String EXCUTE_DATE = "excute_date";

    public static final String CREATE_DATE = "create_date";

}
